/ * 
           F o r   u s e   w i t h   e x p S c a l i n g   f r o m   P r e f e r e n c e s 
           
           i f   ( e x p S c a l i n g   = =   N O )   { 
           
           / / r o l l P W M   a n d   y a w P W M   =   d i s t a n c e   f r o m   c e n t e r ;   d e f a u l t   c e n t e r   p o i n t   =   1 5 0 0 u s 
           r o l l P W M   =   - ( ( 4 1 9 9 / M _ P I )   *   r o l l N o r m a l ) ; 
           y a w P W M   =   - ( ( 4 1 9 9 / M _ P I )   *   y a w N o r m a l ) ; 
           } 
           
           / / C h e c k   t h i s   c a l c u l a t i o n .     S o m e t h i n g   i s   o f f ! ! ! 
           i f   ( e x p S c a l i n g   = =   Y E S )   { 
           
           / / S e t   k   =   5   b a s e d   o n   i n i t i a l   s c a l e   c a l c u l a t i o n s .     C a n   b e   e d i t e d   i f   n e e d e d . 
           i n t   k   =   5 ; 
           
           f l o a t   r o l l E x p   =   1   *   e x p ( k   *   r o l l N o r m a l ) ; 
           f l o a t   y a w E x p   =   1   *   e x p ( k   *   y a w N o r m a l ) ; 
           
           / / S e t   m   =   1 2 . 7 0 8 2   b a s e d   o n   i n i t i a l   s c a l e   c a l c u l a t i o n s   ( d i f f e r e n c e   b e t w e e n   m a x / m i n   r e s u l t   o f   e x p o n e n t i a l   f u n c t i o n   a t   k   =   5 ) ; 
           f l o a t   m   =   1 2 . 7 0 8 2 ; 
           f l o a t   n   =   0 . 9 2 7 0 5 0 9 3 9 1 5 0 6 6 1 ; 
           / / h   a n d   j   a r e   s e l e c t e d   b a s e d   o n   i n d i v i d u a l   a x i s   i n p u t s   i n d e p e n d e n t   o f   o n e   a n o t h e r 
           f l o a t   h ; 
           f l o a t   j ; 
           
           / / S e e   N u m b e r s   s p r e a d s h e e t   f o r   f u l l   e x p l a n a t i o n o   o f   v a l u e s   a n d   c o n d i t i o n a l s 
           i f   ( r o l l E x p   <   1 )   { 
           h   =   n ; 
           } 
           e l s e   { 
           h   =   m ; 
           } 
           
           i f   ( y a w E x p   <   1 )   { 
           j   =   n ; 
           } 
           e l s e   { 
           j   =   m ; 
           } 
           
           r o l l P W M   =   - ( ( r o l l E x p   -   1 ) / h )   *   7 0 0 ; 
           y a w P W M   =   - ( ( y a w E x p   -   1 ) / j )   *   7 0 0 ; 
           N S L o g ( @ " D i s t a n c e   f r o m   C e n t e r   =   % f ,   % f " ,   r o l l P W M ,   y a w P W M ) ; 
           } 
           * / 
 
 
 - - - - - - 
 
 / * 
 -   ( v o i d ) d e a d m a n S w i t c h S e t t i n g 
 { 
         / /   R a w   v a l u e   f o r   d e a d m a n   s w i t c h   B O O L   l o g g e d   i n   P r e f e r e n c e s   m e t h o d 
         / /   R e - d r a w   d e a d m a n   s w i t c h   b a s e d   o n   m o d e   r e a d   i n   f r o m   P r e f e r e n c e s   m e t h o d 
         B O O L   s w i t c h S t r i n g   =   [ P r e f e r e n c e s   s h o u l d E n t e r L e f t H a n d M o d e ] ; 
         
         / /   R e m o v e   p r e v i o u s   i n s t a n c e   o f   s w i t c h   f r o m   v i e w 
         [ s e l f . d e a d m a n S w i t c h   r e m o v e F r o m S u p e r v i e w ] ; 
         
         / /   A d d   l e f t - h a n d e d   s w i t c h   i n   b o t t o m   l e f t   c o r n e r   o f   s c r e e n 
         i f   ( s w i t c h S t r i n g   = =   Y E S )   { 
                 [ s e l f . d e a d m a n S w i t c h   s e t F r a m e : C G R e c t M a k e ( 2 0 ,   1 9 0 ,   7 5 ,   7 5 ) ] ; 
                 [ s e l f . v i e w   a d d S u b v i e w : d e a d m a n S w i t c h ] ; 
                 N S L o g ( @ " S w i t c h   p l a c e d   o n   l e f t " ) ; 
         } 
         / /   A d d   r i g h t - h a n d e d   s w i t c h   i n   b o t t o m   r i g h t   c o r n e r   o f   s c r e e n 
         e l s e   i f   ( s w i t c h S t r i n g   = =   N O )   { 
                 [ s e l f . d e a d m a n S w i t c h   s e t F r a m e : C G R e c t M a k e ( 3 8 5 ,   1 9 0 ,   7 5 ,   7 5 ) ] ; 
                 [ s e l f . v i e w   a d d S u b v i e w : d e a d m a n S w i t c h ] ; 
                 N S L o g ( @ " S w i t c h   p l a c e d   o n   r i g h t " ) ; 
         }   
         
         / /   C o n s i d e r   a d d i n g   a n o t h e r   c o n d i t i o n a l   f o r   o n e - h a n d e d   v s .   t w o - h a n d e d   o p e r a t i o n   w h e r e   d e a d m a n S w i t c h   i s   p l a c e d   c l o s e r   t o   t o p   o f   s c r e e n   o n   e i t h e r   s i d e 
 } 
 * / 
 
 - - - - - - - 
 
 / * 
 -   ( B O O L ) e x p o n e n t i a l S c a l i n g S e t t i n g 
 { 
         / /   R a w   v a l u e   f o r   e x p o n e n t i a l   s c a l i n g   s w i t c h   B O O L   l o g g e d   i n   P r e f e r e n c e s   m e t h o d 
         / /   S e t   e x p S c a l i n g   v a l u e   b a s e d   o n   p r e f e r e n c e 
         e x p S c a l i n g   =   [ P r e f e r e n c e s   s h o u l d U s e E x p o n e n t i a l S c a l e ] ; 
         r e t u r n   e x p S c a l i n g ; 
 } 
 * / 
 
 - - - - - - - - - 
 / * 
 +   ( B O O L ) s h o u l d E n t e r L e f t H a n d M o d e 
 { 
         / /   D o e s   u s e r   w a n t   t o   e n t e r   l e f t   h a n d   m o d e ? 
         / /   C h e c k   u s e r   d e f a u l t s   a n d   p u l l   d a t a   f o r   s w i t c h   l o c a t i o n 
         N S U s e r D e f a u l t s   * u d   =   [ N S U s e r D e f a u l t s   s t a n d a r d U s e r D e f a u l t s ] ; 
         
         / /   S w i t c h   l o c a t i o n 
         / / B O O L   s w i t c h S t a t u s   =   [ u d   b o o l F o r K e y : @ " s w i t c h _ l o c a t i o n " ] ; 
         N S L o g ( @ " L e f t   h a n d e d   d e a d m a n   s w i t c h   =   % i " ,   [ u d   b o o l F o r K e y : @ " s w i t c h _ l o c a t i o n " ] ) ; 
         
         / /   C l a s s   m e t h o d   r e t u r n s   1   =   O N / Y E S   0   =   O F F / N O   ( d e f a u l t   i s   o f f ) 
         i f   ( [ u d   b o o l F o r K e y : @ " s w i t c h _ l o c a t i o n " ]   ! =   0 ) 
                 r e t u r n   [ [ N S U s e r D e f a u l t s   s t a n d a r d U s e r D e f a u l t s ]   b o o l F o r K e y : @ " s w i t c h _ l o c a t i o n " ] ; 
         e l s e 
                 r e t u r n   0 ; 
 } 
 * / 
 
 - - - - - - - - - - 
 
 / * 
 +   ( B O O L ) s h o u l d U s e E x p o n e n t i a l S c a l e 
 { 
         
         / /   D o e s   u s e r   w a n t   t o   u s e   e x p o n e n t i a l   s c a l i n g ? 
         N S U s e r D e f a u l t s   * u d   =   [ N S U s e r D e f a u l t s   s t a n d a r d U s e r D e f a u l t s ] ; 
         
         / /   S w i t c h   l o c a t i o n 
         / / B O O L   s w i t c h S t a t u s   =   [ u d   b o o l F o r K e y : @ " s w i t c h _ l o c a t i o n " ] ; 
         N S L o g ( @ " E x p o n e n t i a l   s c a l i n g   =   % i " ,   [ u d   b o o l F o r K e y : @ " e x p _ s c a l i n g " ] ) ; 
         
         / /   C l a s s   m e t h o d   r e t u r n s   1   =   O N / Y E S   2   =   O F F / N O   ( d e f a u l t   i s   o f f ) 
         i f   ( [ u d   b o o l F o r K e y : @ " e x p _ s c a l i n g " ]   ! =   0 ) 
                 r e t u r n   [ [ N S U s e r D e f a u l t s   s t a n d a r d U s e r D e f a u l t s ]   b o o l F o r K e y : @ " e x p _ s c a l i n g " ] ; 
         e l s e 
                 r e t u r n   0 ; 
 } 
 * / 
 
 - - - - - - - - - - - 
 
 / *     P o t e n t i a l   a n i m a t i o n   c o d e   f o r   m a k i n g   t h e   s l i d e r   a p p e a r   a s   i f   i t   s l i d e s   d o w n   o f f   o f   s c r e e n 
         U I V i e w   * v i e w   =   [ [ U I V i e w   a l l o c ]   i n i t W i t h F r a m e : C G R e c t M a k e ( 0 . 0 f , 4 6 0 . 0 f , 3 2 0 . 0 f , 2 6 0 . 0 f ) ] ; 
         [ U I V i e w   b e g i n A n i m a t i o n s : n i l   c o n t e x t : n i l ] ; 
         [ U I V i e w   s e t A n i m a t i o n D u r a t i o n : 1 . 0 ] ; 
         [ U I V i e w   s e t A n i m a t i o n T r a n s i t i o n : U I V i e w A n i m a t i o n T r a n s i t i o n N o n e   f o r V i e w : [ s e l f   v i e w ]   c a c h e : Y E S ] ; 
         [ v i e w   s e t F r a m e : C G R e c t M a k e ( 0 . 0 f , 2 0 0 . 0 f , 3 2 0 . 0 f , 2 6 0 . 0 f ) ] ; 
         [ U I V i e w   c o m m i t A n i m a t i o n s ] ; 
           * / 